package com.oraro.paygatewaybiz.module.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oraro.paygatewaybiz.module.entity.OrderEntity;

import java.util.Map;

/**
 * 
 *
 * @author jianghuiyong
 * @email 
 * @date 2018-11-16 16:34:25
 */
public interface OrderService extends IService<OrderEntity> {

    IPage<OrderEntity> queryPage(Map<String, Object> params);

    /**
     *
     * @param orderEntity
     * @return 主键orderId
     */
    Long createOrder(OrderEntity orderEntity);

    OrderEntity selectByOrderId(Long orderId);

    Integer getCountByTradeNo (String outTradeNo);

    OrderEntity getByTradeNo(String outTradeNo);

    void updateOrderChannel(Long orderId, String channelType);

    boolean completeOrder (OrderEntity orderEntity);

}

